﻿using System.Data.Odbc;
using Miado.Configuration;

namespace Miado.Databases
{
    /// <summary>
    /// This class represents a database that will be connected to using ODBC.
    /// </summary>
	public class OdbcDatabase : Database
	{
        /// <summary>
        /// Initializes a new instance of the <see cref="OdbcDatabase"/> class.
        /// </summary>
        /// <param name="connString">The connection string.</param>
		public OdbcDatabase(string connString) : base(OdbcFactory.Instance, connString)
		{
			var paramParser = new LegacyParameterParser();
            UsingSourceCodeSyntax(paramParser).MapSourceCodeSyntaxTo(paramParser);			
		}
	}
}
